package com.aspose.cells;

import java.util.ArrayList;

public class Walls extends Floor {
   private Chart d;
   private float e;
   private float f;
   private float g;
   private float h;
   private float i;
   private ArrayList j = new ArrayList();

   Walls(Chart chart) {
      super(chart);
      this.d = chart;
      if (chart.i()) {
         if (!ChartCollection.c(chart.getType())) {
            this.setForegroundColor(Color.fromArgb(192, 192, 192));
         }
      } else {
         this.setFormatting(0);
      }

   }

   public int getCenterX() {
      return (int)((double)(this.e * 4000.0F / (float)this.d.getChartObject().getWidth()) + 0.5D);
   }

   public int getCenterY() {
      return (int)((double)(this.f * 4000.0F / (float)this.d.getChartObject().getHeight()) + 0.5D);
   }

   public int getWidth() {
      return (int)((double)(this.g * 4000.0F / (float)this.d.getChartObject().getWidth()) + 0.5D);
   }

   public int getDepth() {
      return (int)((double)(this.h * 4000.0F / (float)this.d.getChartObject().getWidth()) + 0.5D);
   }

   public int getHeight() {
      return (int)((double)(this.i * 4000.0F / (float)this.d.getChartObject().getHeight()) + 0.5D);
   }

   public int getCenterXPx() {
      return (int)((double)this.e + 0.5D);
   }

   public int getCenterYPx() {
      return (int)((double)this.f + 0.5D);
   }

   public int getWidthPx() {
      return (int)((double)this.g + 0.5D);
   }

   public int getDepthPx() {
      return (int)((double)this.h + 0.5D);
   }

   public int getHeightPx() {
      return (int)((double)this.i + 0.5D);
   }

   void a(float var1, float var2, float var3, float var4, float var5) {
      this.e = var1;
      this.f = var2;
      this.g = var3;
      this.i = var4;
      this.h = var5;
   }

   public int getCubePointCount() {
      return this.j.size();
   }

   public float getCubePointXPx(int index) {
      if (index >= this.getCubePointCount()) {
         throw new CellsException(0, "index must be less than GetCubePointCount()");
      } else {
         return ((com.aspose.cells.b.a.b.zo)this.j.get(index)).d();
      }
   }

   public float getCubePointYPx(int index) {
      if (index >= this.getCubePointCount()) {
         throw new CellsException(0, "index must be less than GetCubePointCount()");
      } else {
         return ((com.aspose.cells.b.a.b.zo)this.j.get(index)).e();
      }
   }

   void a(ArrayList var1) {
      for(int var2 = 0; var2 < var1.size(); ++var2) {
         com.aspose.cells.b.a.a.ze.a(this.j, (Object)(new com.aspose.cells.b.a.b.zo(((com.aspose.cells.b.a.b.zo)var1.get(var2)).d(), ((com.aspose.cells.b.a.b.zo)var1.get(var2)).e())));
      }

   }
}
